<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
<%@page import="model.Product"%>
<%@page import="model.Price" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>PrijsLijst</title>
</head>
<body>
<h2>PrijsLijsten</h2>
<h3>Price List "All Prices" </h3>
<table border="1" cellspacing="2" cellpadding="0">
	<tr>			
		<td>PriceId</td>
		<td>ProductId</td>
		<td>PriceDate</td>
		<td>UnitCode</td>
		<td>Price</td>
		<td>Active</td>
		
	</tr>
<%Price p; %>
<s:iterator value="prijzen">

<tr>
	<td><s:property value = "priceId"/></td>
	<td><s:property value = "getProduct().getProductId()"/></td>
	<td><s:property value = "priceDate"/></td>
	<td><s:property value = "unitCode"/></td>
	<td><s:property value = "price"/></td>
	<td><s:property value = "active"/></td>
</tr>
</s:iterator>
</table>

<h3>Price List "All active Prices"" </h3>
<table border="1" cellspacing="2" cellpadding="0">
	<tr>			
		<td>PriceId</td>
		<td>ProductId</td>
		<td>PriceDate</td>
		<td>UnitCode</td>
		<td>Price</td>
		<td>Active</td>
		
	</tr>

<s:iterator value="prijzen2">

<tr>
	<td><s:property value = "priceId"/></td>
	<td><s:property value = "getProduct().getProductId()"/></td>
	<td><s:property value = "priceDate"/></td>
	<td><s:property value = "unitCode"/></td>
	<td><s:property value = "price"/></td>
	<td><s:property value = "active"/></td>
</tr>
</s:iterator>
</table>


<h3>Price List "Number of Price Items in the DB" </h3>
 Het aantal prijs objecten in de databank bedraagt: <s:property value="count"/>  

<p> <a href="<s:url action="Index"  />" target="_blank">Return to home page</a></p>
</body>
</html>